package com.aspyn.tabtest;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;

public class Ball {
	private int x, y, radius, id;
	private int xvel, yvel;
	private int color;
	
	private Bitmap img;
	
	public Ball (int x, int y, int xvel, int yvel, int radius, int c, int id, Context context, int drawable) {
		
		BitmapFactory.Options opts = new BitmapFactory.Options();
		opts.inJustDecodeBounds = true;
		img = BitmapFactory.decodeResource(context.getResources(), drawable);
		
		this.x = x;
		this.y = y;
		this.xvel = xvel;
		this.yvel = yvel;
		this.radius = radius;
		this.color = c;
		this.id = id;
	}
	
	public Bitmap getImage() {
		return img;
	}
	
	public void move(int newX, int newY, Ball otherBall) {
		otherBall.setX(newX);
		otherBall.setY(newY);
	}
	
	public void setX(int x2) {
		x = x2;
	}
	
	public int getX() {
		return x;
	}
	
	public void setY(int y2) {
		y = y2;
	}
	
	public int getY() {
		return y;
	}
	
	public void setRadius(int radius2) {
		radius = radius2;
	}
	
	public int getRadius() {
		return radius;
	}
	
	public void setID(int id2) {
		id = id2;
	}
	
	public int getID() {
		return id;
	}
	
	public void setXVel(int xvel2) {
		xvel = xvel2;
	}
	
	public int getXVel() {
		return xvel;
	}
	
	public void setYVel(int yvel2) {
		yvel = yvel2;
	}
	
	public int getYVel() {
		return yvel;
	}
	
	public void setColor(int col2) {
		color = col2;
	}
	
	public int getColor() {
		return color;
	}
}
